package Page.AndroidPages;

import Driver.DriverFactory;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.pagefactory.AppiumFieldDecorator;
//import io.appium.java_client.pagefactory.TimeOutDuration;
import org.openqa.selenium.support.PageFactory;

public class BasePage {

    public static AppiumDriver driver = DriverFactory.getAndroidDriver();



    //超时时间
    private final int TIMEOUT = 10;
//    TimeOutDuration timeOutDuration = new TimeOutDuration(10, TimeUnit.SECONDS);

    public BasePage(){
        //初始化所有元素
        System.out.println("initEelments ");
        System.out.println("driver===" + driver);
        PageFactory.initElements(new AppiumFieldDecorator(driver) , this);
        System.out.println(this.getClass() + " init sucess");
    }
}
